package com.kangfawei.decoration;

public class Test {

    public static void main(String[] args) {
        Drink drink = new Coffee();
        Drink coffee = new MilkCoffee(drink);
        System.out.println(coffee.info()+"-->"+coffee.price());

        Drink sugerCoffee = new SugerCoffee(coffee);
        System.out.println(sugerCoffee.info()+"-->"+sugerCoffee.price());
    }
}
